Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm dashboard v2 #394

Closed
wants to merge 370 commits into from
Closed

Helm dashboard v2 #394

wants to merge 370 commits into from

Conversation

chad11111
Copy link
Contributor

Changes Proposed

Check List

  • The title of my pull request is a short description of the changes
  • This PR relates to some issue:
  • I have documented the changes made (if applicable)
  • I have covered the changes with unit tests

@codecov-commenter
Copy link

codecov-commenter commented Jun 25, 2023

Codecov Report

Patch coverage: 48.38% and project coverage change: -0.02% ⚠️

Comparison is base (d46d7ab) 29.87% compared to head (c235632) 29.85%.
Report is 1 commits behind head on main.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #394      +/-   ##
==========================================
- Coverage   29.87%   29.85%   -0.02%     
==========================================
  Files          10       10              
  Lines        1339     1323      -16     
==========================================
- Hits          400      395       -5     
+ Misses        900      887      -13     
- Partials       39       41       +2     
Files Changed Coverage Δ
pkg/dashboard/objects/data.go 11.97% <ø> (+0.16%) ⬆️
pkg/dashboard/server.go 15.06% <ø> (+1.23%) ⬆️
pkg/dashboard/api.go 58.27% <48.38%> (-2.91%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

chad11111 and others added 6 commits June 26, 2023 01:29
* Call linter in CI

* Change static files location for go backend

* Fix docker build

* Static changes

* Fixes for build

* More timeout

* Placeholder in dir
@github-actions github-actions bot added the docs label Jun 26, 2023
@undera undera marked this pull request as draft June 26, 2023 13:31
@@ -0,0 +1,10 @@
#!/bin/bash -e
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this file is not needed anymore, we configured it via vite config

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Helm Dashboard</title>
<script src="/static/analytics.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.1/styles/github.min.css" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we load it like this? AFAIK there is a way to install it like npm install highlight.js

href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/styles/lightfair.min.css"
/>

<link
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question on these CSS - isn't there more canonical way to include these CSS into React app?

dashboard/package.json Outdated Show resolved Hide resolved
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this file?

@@ -60,6 +65,22 @@ func contextSetter(data *objects.DataLayer) gin.HandlerFunc {
}
}

// Middleware for CORS
func corsMiddleware() gin.HandlerFunc {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has to be gone in favor of allowCORS() function that is triggered via env variable. By that, there will be no security risk of forgetting dev code pieces.

@nir2002 nir2002 closed this Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants